package com.eight.clienthome.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eight.clienthome.dao.EduTeacherDao;
import com.eight.clienthome.dao.ShouCangTeacherDao;
import com.eight.clienthome.service.EduTeacherService;
import com.eight.clienthome.vo.AttentionVo;
import com.eight.common.pojo.EduCourse;
import com.eight.common.pojo.EduTeacher;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * @author 向文豪
 * @program: eight-education-parent
 * @description:
 * @date 2023/6/5 10:43
 */
@Service
public class EduTeacherServiceImpl implements EduTeacherService {
    @Autowired
    private EduTeacherDao eduTeacherDao;

    @Autowired
    private ShouCangTeacherDao shouCangTeacherDao;

    @Override
    public List<EduTeacher> findTeacher(String huiYuanId) {
        List<EduTeacher> teacher = eduTeacherDao.findTeacher(huiYuanId);
        return teacher;
    }

    @Override
    public EduTeacher findTeacherByTeacherId(String id) {
        QueryWrapper<EduTeacher> wrapper = new QueryWrapper<>();
        wrapper.eq("id",id);
        EduTeacher eduTeacher = eduTeacherDao.selectOne(wrapper);
        return eduTeacher;
    }




}
